import request from '@/utils/request'

// 查询第二受害者首页简介列表
export function listVitimIndex(query) {
  return request({
    url: '/secondVitim/vitimIndex/list',
    method: 'get',
    params: query
  })
}

// 查询第二受害者首页简介详细
export function getVitimIndex(id) {
  return request({
    url: '/secondVitim/vitimIndex/' + id,
    method: 'get'
  })
}

// 新增第二受害者首页简介
export function addVitimIndex(data) {
  return request({
    url: '/secondVitim/vitimIndex',
    method: 'post',
    data: data
  })
}

// 修改第二受害者首页简介
export function updateVitimIndex(data) {
  return request({
    url: '/secondVitim/vitimIndex',
    method: 'put',
    data: data
  })
}

// 删除第二受害者首页简介
export function delVitimIndex(id) {
  return request({
    url: '/secondVitim/vitimIndex/' + id,
    method: 'delete'
  })
}
